package edu.usx.server.pojo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.util.List;

/**
 * @author zhulintao
 * @version 2.0
 * @date 2024/7/25 16:45
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "分页对象", description = "")
public class PageQueryDTO {
    @ApiModelProperty(value = "关键字", example = "example keyword")
    private String keyword;

    @ApiModelProperty(value = "页码", example = "1")
    private Integer pagenum;

    @ApiModelProperty(value = "每页大小", example = "10")
    private Integer pagesize;
    @Override
    public String toString() {
        return "PageQueryDTO{" +
                "keyword='" + keyword + '\'' +
                ", pagenum=" + pagenum +
                ", pagesize=" + pagesize +
                '}';
    }


    public PageQueryDTO(String keyword, Integer pagenum, Integer pagesize) {
        this.keyword = keyword;
        this.pagenum = pagenum;
        this.pagesize = pagesize;
    }
    public String getKeyword() {
        return keyword;
    }

    public void setKeyword(String keyword) {
        this.keyword = keyword;
    }

    public Integer getPagenum() {
        return pagenum;
    }

    public void setPagenum(Integer pagenum) {
        this.pagenum = pagenum;
    }


    public Integer getPagesize() {
        return pagesize;
    }

    public void setPagesize(Integer pagesize) {
        this.pagesize = pagesize;
    }

}
